package top.kaoshanji.r1ch06a;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/5/6 18:57
 */
public class Boss {

    private String name;
    private Car car = new Car();

    public String toString(){
        String temp ="name:"+name+"\n";
        temp += "car:"+car;
        return temp;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
